<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			
			// 页面加载完成之后执行
			window.onload = function()
			{
				var div01 = document.getElementById("div01");
				div01.textContent = "abc"
			}
			// 页面窗口大小改变
			window.onresize = function()
			{
				console.log("窗口大小改变了!");
			}
		</script>

		<div id="div01">
			123
		</div>


	</body>
</html>
